package org.example.coupon.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.coupon.model.CouponRecordDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 林道敬
 * @since 2024-04-18
 */
public interface CouponRecordMapper extends BaseMapper<CouponRecordDO> {

    int lockUseStateBatch(@Param("userId") Long userId, @Param("useState") String useState, @Param("lockCouponRecordIds") List<Long> lockCouponRecordIds);

    void updateState(Long couponRecordId, String name);
}
